﻿using System;
using System.Linq;

namespace ComeSeeThis_MVC2.Models
{
    public class RoleFormView
    {
        #region Properties

        public aspnet_Roles Role { get; private set; }
        public Guid RoleId { get; private set; }
        //public IEnumerable<VehicleType> VehicleTypes { get; private set; }
        public IQueryable<aspnet_Operation> Operations { get; private set; }

        #endregion

        public RoleFormView(aspnet_Roles role)
        {
            Role = role;
            RoleId = role.RoleId;

            Operations = new SecurityRepository().GetAllOperations();
        }

    }
}